package com.read.dubbo_client_demo.action;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.read.dubbo_server_demo.entity.User;
import com.read.dubbo_server_demo.service.UserService;

@Component
public class ClientAction {
	@Reference(interfaceClass=UserService.class,
			url="dubbo://localhost:20880/com.read.dubbo_server_demo.service.UserService")
	private UserService service;
	
	public void save(User u){
		
		service.save(u);
	}
}
